package com.molichuxing.services.infrastructure.service;

import com.molichuxing.services.infrastructure.dto.response.response.GroupDto;
import com.molichuxing.services.infrastructure.dto.response.response.GroupResourceDto;

import java.util.List;
import java.util.Map;

public interface GroupResourceService {

    /**
     * 根据条件查询符合条件的角色数据
     *
     * @param param
     * @return
     */
    List<GroupResourceDto> getGroupResourceListByParm(Map<String, Object> param);

    /**
     * 批量添加
     * @param groupId
     * @param resources
     * @return
     */
    int createBatchGroupResource(int groupId, List<Integer> resources);

    /**
     * 根据groupId删除
     * @param groupId
     * @return
     */
    int deleteByGroupId(int groupId);

    /**
     * 根据resourceId删除
     * @param resourceId
     * @return
     */
    int deleteByResourceId(int resourceId);
}

